<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
    <script th:src="@{/node_modules/jquery/dist/jquery.min.js}"></script>

</head>
<body>
<button>a</button>
</body>
<script type="text/javascript">
    $('button').click(function () {
        $.post({
            url:'/admin/articleType2',
            contentType:"application/x-www-form-urlencoded",
            dataType:'script',
            data:{
                id:1,
                name:'zhao',
                _method:'put',
            },
            success:function (data) {
                console.log(data);
            }
        })
    })
</script>
</html>